package com.example.express.repo;

import com.example.express.model.TransPackage;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

@EnableJpaRepositories
public interface TransPackageRepo extends CrudRepository<TransPackage, String> {
    List<TransPackage> findByTarget_NodeNameAndStatus(String node, int status);

    List<TransPackage> findBySource_NodeNameAndStatus(String node, int status);
}
